﻿@model IEnumerable<Anglo.Models.JobHierarchy>

<table>
@foreach (var item in Model) {
    if (item.IndustryHeader)
    {
    <tr><td colspan="3"><b>
        @Html.DisplayFor(modelItem => item.Industry)
     </b></td></tr>
    }
    if (item.DisciplineHeader)
    {
    <tr><td colspan="3"><b>
        @Html.DisplayFor(modelItem => item.Discipline)
     </b></td></tr>
    }
    <tr>
        <td>
            @Html.ActionLink(item.JobTitle, "details", "jobs", new { id = item.JobID }, null)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Location)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Pay)
        </td>
     </tr>
}
</table>